import 'package:flame/components.dart';
import 'dart:math' as math;
import '../../../config/AssetsName.dart';
import '../../../component/ScaleSpriteComponent.dart';

class SelectorScreenCloudComponent extends PositionComponent {
  @override
  Future<void> onLoad() async {
    super.onLoad();
    add(_SelectorScreenCloud7());
    add(_SelectorScreenCloud2());
    add(_SelectorScreenCloud4());
    add(_SelectorScreenCloud6());
    add(_SelectorScreenCloud5());
  }
}

class _SelectorScreenCloud7 extends ScaleSpriteComponent {
  _SelectorScreenCloud7()
    : super(
        300,
        Vector2(-500, 90),
        AssetsName.spriteSelectorScreenCloud7,
        setAngle: -30 / 360 * (2 * math.pi),
      );
}

class _SelectorScreenCloud2 extends ScaleSpriteComponent {
  _SelectorScreenCloud2()
    : super(
        230,
        Vector2(-20, -230),
        AssetsName.spriteSelectorScreenCloud2,
        setAngle: 25 / 360 * (2 * math.pi),
      );
}

class _SelectorScreenCloud4 extends ScaleSpriteComponent {
  _SelectorScreenCloud4()
    : super(
        180,
        Vector2(-410, 100),
        AssetsName.spriteSelectorScreenCloud4,
        setAngle: -25 / 360 * (2 * math.pi),
      );
}

class _SelectorScreenCloud6 extends ScaleSpriteComponent {
  _SelectorScreenCloud6()
    : super(
        110,
        Vector2(-410, 75),
        AssetsName.spriteSelectorScreenCloud6,
        setAngle: 0 / 360 * (2 * math.pi),
      );
}

class _SelectorScreenCloud5 extends ScaleSpriteComponent {
  _SelectorScreenCloud5()
      : super(
    310,
    Vector2(-210, -375),
    AssetsName.spriteSelectorScreenCloud5,
    setAngle: -5 / 360 * (2 * math.pi),
  );
}
